package za.org.jcicada.cfgmngr.impl;

import java.util.ArrayList;
import java.util.List;

import za.org.jcicada.cfgmngr.ISystemObserver;
import za.org.jcicada.cfgmngr.SystemSetType;
import za.org.jcicada.genss.SystemURN;
import za.org.jcicada.genss.messages.Result;

public class StubSystemObserver implements ISystemObserver {

	public boolean disconnected;
	public SystemURN systemURN;
	public SystemSetType type;
	public Event event;
	public Result result;
	public List<SystemURN> systemURNs = new ArrayList<SystemURN>();
	
	public void informDisconnect() {
		disconnected = true;
	}

	public void informSystemEvent(SystemURN systemURN, SystemSetType type, Event event) {
		this.systemURN = systemURN;
		this.type = type;
		this.event = event;
		this.systemURNs.add(systemURN);
	}

	public void replyAttach(Result result) {
		this.result = result;
	}

	public void replyDetach(Result result) {
		this.result = result;
	}

}
